package com.jf.identity.entity;

import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * @author Administrator
 */
public class StaticValidation implements Serializable {
    private static final long serialVersionUID = 2877834867010472236L;
    private String uid;
    private String orgCode;
    private String examId;
    private String examSessionNum;
    private Integer total;
    private Integer validatedSum;
    private String admissionRate;
    private Integer fingureSum;
    private String fingureRate;
    private Integer faceSum;
    private String faceRate;
    private Integer manualSum;
    private String manualRate;
    private Integer abnormalSum;
    private Integer unValidatedSum;
    private Integer absentSum;
    private String absentRate;
    private String finalPassRate;

    public String getUid() {
        if (StringUtils.isEmpty(uid)) {
            return orgCode+"_"+examId+"_"+examSessionNum;
        }
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getExamId() {
        return examId;
    }

    public void setExamId(String examId) {
        this.examId = examId;
    }

    public String getExamSessionNum() {
        return examSessionNum;
    }

    public void setExamSessionNum(String examSessionNum) {
        this.examSessionNum = examSessionNum;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getValidatedSum() {
        return validatedSum;
    }

    public void setValidatedSum(Integer validatedSum) {
        this.validatedSum = validatedSum;
    }

    public String getAdmissionRate() {
        return admissionRate;
    }

    public void setAdmissionRate(String admissionRate) {
        this.admissionRate = admissionRate;
    }

    public Integer getFingureSum() {
        return fingureSum;
    }

    public void setFingureSum(Integer fingureSum) {
        this.fingureSum = fingureSum;
    }

    public String getFingureRate() {
        return fingureRate;
    }

    public void setFingureRate(String fingureRate) {
        this.fingureRate = fingureRate;
    }

    public Integer getFaceSum() {
        return faceSum;
    }

    public void setFaceSum(Integer faceSum) {
        this.faceSum = faceSum;
    }

    public String getFaceRate() {
        return faceRate;
    }

    public void setFaceRate(String faceRate) {
        this.faceRate = faceRate;
    }

    public Integer getManualSum() {
        return manualSum;
    }

    public void setManualSum(Integer manualSum) {
        this.manualSum = manualSum;
    }

    public String getManualRate() {
        return manualRate;
    }

    public void setManualRate(String manualRate) {
        this.manualRate = manualRate;
    }

    public Integer getAbnormalSum() {
        return abnormalSum;
    }

    public void setAbnormalSum(Integer abnormalSum) {
        this.abnormalSum = abnormalSum;
    }

    public Integer getUnValidatedSum() {
        return unValidatedSum;
    }

    public void setUnValidatedSum(Integer unValidatedSum) {
        this.unValidatedSum = unValidatedSum;
    }

    public Integer getAbsentSum() {
        return absentSum;
    }

    public void setAbsentSum(Integer absentSum) {
        this.absentSum = absentSum;
    }

    public String getAbsentRate() {
        return absentRate;
    }

    public void setAbsentRate(String absentRate) {
        this.absentRate = absentRate;
    }

    public String getFinalPassRate() {
        return finalPassRate;
    }

    public void setFinalPassRate(String finalPassRate) {
        this.finalPassRate = finalPassRate;
    }

    @Override
    public String toString() {
        return "StaticValidation{" +
                "uid='" + uid + '\'' +
                ", orgCode='" + orgCode + '\'' +
                ", examId='" + examId + '\'' +
                ", examSessionNum='" + examSessionNum + '\'' +
                ", total=" + total +
                ", validatedSum=" + validatedSum +
                ", admissionRate='" + admissionRate + '\'' +
                ", fingureSum='" + fingureSum + '\'' +
                ", fingureRate='" + fingureRate + '\'' +
                ", faceSum='" + faceSum + '\'' +
                ", faceRate='" + faceRate + '\'' +
                ", manualSum='" + manualSum + '\'' +
                ", manualRate='" + manualRate + '\'' +
                ", abnormalSum='" + abnormalSum + '\'' +
                ", unValidatedSum='" + unValidatedSum + '\'' +
                ", absentSum='" + absentSum + '\'' +
                ", absentRate='" + absentRate + '\'' +
                ", finalPassRate='" + finalPassRate + '\'' +
                '}';
    }
}
